package cn.bjsxt.test02;

public class TestWhile {
	public static void main(String[] args){
		int a = 0;
		while (a <= 100){
			System.out.println(a);
			++a;
		}
		
		int b = 1;
		int sun = 0;
		while (b <= 100) {
			sun += b;
			b++;
		}
		System.out.println(sun);
	}
}
